<?php
error_reporting(0);
include_once '../comm/conn.php';
include_once '../comm/func.php';
include_once 'check.php';
//请不要随意修改代码，凡是随意修改代码造成的一切后果均由修改者本人承担，多多不再提供技术支持	
$webtitle=$_POST['webtitle']; 
$webdesc=$_POST['webdesc']; 
$keyword=$_POST['keyword']; 
$description=$_POST['description']; 
$url=$_POST['url']; 
$surl=$_POST['surl']; 
$email=$_POST['email']; 
$icp=$_POST['icp']; 
$tongji=$_POST['tongji'];
$qq =$_POST['qq']; 
$webnick =$_POST['webnick']; 
$renzheng =$_POST['renzheng']; 
$wjt =$_POST['wjt']; 
$liebiao =$_POST['liebiao']; 
$morensort =$_POST['morensort']; 
$moban =$_POST['moban']; 
$pagesize =$_POST['pagesize']; 
$fxbl=$_POST['fxbl']/100;
$fxbl2=$_POST['fxbl2']/100;
$fxbl3=$_POST['fxbl3']/100;
$fxbl4=$_POST['fxbl4']/100;
$tgbl=$_POST['tgbl']/100;
$dengji1 =$_POST['dengji1']; 
$dengji2 =$_POST['dengji2']; 
$dengji3 =$_POST['dengji3'];	
$tixianje =$_POST['tixianje']; 
$txxz =$_POST['txxz'];
$zhucesong =$_POST['zhucesong'];
$zhucesonglevel=$_POST['zhucesonglevel'];
$smtphost=$_POST['smtphost']; 
$smtpuser=$_POST['smtpuser']; 
$smtppw=$_POST['smtppw']; 
$smtpport=$_POST['smtpport']; 
$smtptimeout=$_POST['smtptimeout']; 
$smtpopen=$_POST['smtpopen'];
$hotword=$_POST['hotword'];

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {die('数据库链接出错: ' . mysql_error());}
mysql_select_db($dbname);
mysql_query("set names utf8");
$q = "update ".$BIAOTOU."websetting set webtitle='".$webtitle."',webdesc='".$webdesc."',keyword='".$keyword."',description='".$description."',url='".$url."',surl='".$surl."',email='".$email."',icp='".$icp."',tongji='".$tongji."',qq ='".$qq."',webnick ='".$webnick."',renzheng='".$renzheng."',wjt='".$wjt."',liebiao='".$liebiao."',morensort='".$morensort."',moban='".$moban."',pagesize='".$pagesize."',smtp_host='".$smtphost."',smtp_user='".$smtpuser."',smtp_pw='".$smtppw."',smtp_open='".$smtpopen."',fxbl='".$fxbl."',fxbl2='".$fxbl2."',fxbl3='".$fxbl3."',fxbl4='".$fxbl4."',tgbl='".$tgbl."',tixianje=".$tixianje.",zhucesong='".$zhucesong."',zhucesonglevel='".$zhucesonglevel."',dengji1=".$dengji1.",dengji2=".$dengji2.",dengji3=".$dengji3.",hotword='".$hotword."',txxz=".$txxz."";
mysql_query($q);

include_once 'write_config.php';

mysql_close($link);
echo "<script language=javascript>alert('网站信息更新成功！即将跳转到基本信息设置...');window.location='webset.php'</script>";
?>